package com.qd.common.panda.domain.entity.space;

import com.cdqidi.util.page.BaseQuery;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 车位租赁信息,业主端收益
 *
 * @author sjk
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class OwnerMyIncomeSpaceDTO extends BaseQuery {

    /**
     * 主键
     */
    private String sid;
    /**
     * 租赁开始时间
     */
    private String startDate;
    /**
     * 租赁结束时间
     */
    private String endDate;
    /**
     * 停车场ID
     */
    private String parkId;
    /**
     * 停车场ID显示
     */
    private String parkIdDisplay;
    /**
     * 发布人
     */
    private String publisher;
    /**
     * 停车场地址
     */
    private String address;
    /**
     * 车位号
     */
    private String spaceNumber;
    /**
     * 熊猫泊车车位号
     */
    private String sysSpaceNumber;
    /**
     * 扣费后总收益
     */
    @JsonIgnore
    private BigDecimal deductionTotalRevenue;
    /**
     * 扣费后总收益显示
     */
    private String deductionTotalRevenueDisplay;

    @Override
    public void freeData() {
        this.sid = null;
        this.startDate = null;
        this.endDate = null;
        this.parkId = null;
        this.parkIdDisplay = null;
        this.publisher = null;
        this.address = null;
        this.spaceNumber = null;
        this.sysSpaceNumber = null;
        this.deductionTotalRevenue = null;
        this.deductionTotalRevenueDisplay = null;
        super.freeData();
    }
}
